class Notifier < ActionMailer::Base

  default from: 'Campina virtual Notifier'
  def password_reset_instructions(user)
    @user= user
    @subject = 'Password reset instructions.'
    @sent_on = Time.now
    # default host is defined in development.rb configuration file
    @edit_password_reset_url = url_for :controller => 'password_reset_instructions', :action => 'edit'
    @edit_password_reset_url += "?id=#{user.perishable_token}"
    mail to: user.email
  end
end
